﻿using DemoUser.Application.User.Filter;
using DemoUser.Application.User.Interface;
using DemoUser.Core.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoUser.Application.User.Services
{
    
    public class TbUserService : ITbUserService, ITransient
    {
        private readonly ISqlSugarClient _client;

        public TbUserService(ISqlSugarClient client)
        {
            _client = client;
        }

        public List<TbUser> SelectAll(int count)
        {
            List<TbUser> list = _client.Queryable<TbUser>().ToList();
            return list;
        }
    }
}
